export default {
	namespaced: true,
	state: {
		locationArr: [],
		locationId: [],
		sheng: {},
		shi: {},
		qu: {},
		addr: '',
		txt: '请选择',
	},
	mutations: {
		updateLocationArrData(state, data) {
			state.locationArr = data;
		},
		updateShengData(state, data) {
			state.sheng = data;
		},
		updateShiData(state, data) {
			state.shi = data;
		},
		updateQuData(state, data) {
			state.qu = data;
		},
		updateAddrData(state, data) {
			state.addr = data;
		},
		updateTxtData(state, data) {
			state.txt = data;
		},
		updateLocationId(state, data) {
			state.locationId = data;
		},
		
		clearData(state, data) {
			state= {
				locationArr: [],
				locationId: [],
				sheng: {},
				shi: {},
				qu: {},
				addr: '',
				txt: '请选择',
			}
		}
		
	}
}